var util = require('../../utils/util.js');
var api = require('../../config/api.js');
var app = getApp();
Page({
  data: {
    isShowShop:false
  },
  onLoad: function (options) {

  },
 
  onReady: function () {

  },
  onShow: function () {
    // 页面显示

  },
  onHide: function () {
    // 页面隐藏

  },
  onUnload: function () {
    // 页面关闭

  },
  bindShowShop: function () {
    if (this.globalData.isShowShop) {
      this.globalData.isShowShop = false
      console.log("isShowShop", this.globalData.isShowShop)
      this.setData({
        isShowShop:false
      })
    } else {
      this.globalData.isShowShop = true
      console.log("isShowShop", this.globalData.isShowShop)
      this.setData({
        isShowShop: true
      })
    }

  },
  fnToIndex:function(){
    wx.switchTab({
      url: '/pages/index/index-new',
    })
  }
})